<template>
  <div class="comNavBar">
    <van-nav-bar
      :title="title"
      @click-left="$router.go(-1)"
      @click-right="$router.push('/index')"
    >
      <template #left>
        <van-icon name="arrow-left" color="#fff" size="36px" />
      </template>
      <template #right>
        <van-icon name="ellipsis" color="#fff" size="36px" />
      </template>
    </van-nav-bar>
  </div>
</template>

<script>
// import { localGet } from '../utils/mylocal'
export default {
  name: 'comNavBar',
  data () {
    return {}
  },
  props: ['title'],
  methods: {
    onclickLeft () {
      console.log('123')
    }
  }
}
</script>

<style lang="less" scoped>
.comNavBar {
  height: 44px;
  width: 100%;
  background-color: #3296fa;
  color: #ffffff;
  ::v-deep .van-nav-bar__content {
    background-color: #3296fa;
  }
  ::v-deep [class*='van-hairline']::after {
    border-bottom: none;
  }
  /deep/ .van-nav-bar__left {
    padding-left: 10px;
  }
  /deep/ .van-nav-bar__right {
    padding-right: 10px;
  }
}
</style>
